FOOD = "Food"
GOLD = "Gold"
INFLUENCE = "Influence"
POWER = "Power"

def short_string(resource_dictionary, text=""):
    result = text
    for resource, value in resource_dictionary.iteritems():
        result += "%d%c " % (value, resource[0])
    return result

def long_string(resource_dictionary, text=""):
    result = text
    for resource, value in resource_dictionary.iteritems():
        result += "%d %s, " % (value, resource)
    return result

def difference(first, second):
    result = {}
    for resource, value in first.iteritems():
        result[resource] = value - second[resource]
    return result

def reduce(resource_dictionary):
    result = 0
    for resource, value in resource_dictionary.iteritems():
        result += value
    return result
